package com.hjf.method;

public class MethodDemo1 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int c = sum(a, b);

        System.out.println(c);

        int a1 = 20;
        int b1 = 30;
        int c1 = sum(a1, b1);

        System.out.println(c1);
    }

    public static int sum(int a, int b) {
        int c = a + b;
        return a + b;
    }

    public static void show(int a, int b){  //无返回值类型
        System.out.println(a + b);
    }
}
